package longshu.data;

import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;

@SpringBootApplication(
        scanBasePackages = {"longshu.data"},
        exclude = {DataSourceAutoConfiguration.class}
)
public class DataTestingApplication {

    public static SpringApplicationBuilder configureApplication(SpringApplicationBuilder builder) {
        return builder.sources(DataTestingApplication.class).bannerMode(Banner.Mode.CONSOLE);
    }

    public static void main(String[] args) {
        // SpringApplication.run(DataTestingApplication.class, args);
        configureApplication(new SpringApplicationBuilder()).run(args);
        System.out.println("DataTestingApplication running...");
    }

}
